package cn.petplatform.petback.mapper;

import cn.petplatform.petback.pojo.PetPublish;
import cn.petplatform.petback.pojo.PetPublishExample;
import java.util.List;

import cn.petplatform.petback.pojo.vo.PublishPetDetailVo;
import org.apache.ibatis.annotations.Param;

public interface PetPublishMapper {
    long countByExample(PetPublishExample example);

    int deleteByExample(PetPublishExample example);

    int deleteByPrimaryKey(String id);

    int insert(PetPublish record);

    int insertSelective(PetPublish record);

    List<PetPublish> selectByExample(PetPublishExample example);

    PetPublish selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") PetPublish record, @Param("example") PetPublishExample example);

    int updateByExample(@Param("record") PetPublish record, @Param("example") PetPublishExample example);

    int updateByPrimaryKeySelective(PetPublish record);

    int updateByPrimaryKey(PetPublish record);

    int updateIsPass(String petId);

    List<PublishPetDetailVo> selectIsPassAsZero();

    int deleteByPetId(String id);
}